package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Alert {
    @JsonProperty("alert_id")
    private Long alertId;
    
    @JsonProperty("site_id")
    private Integer siteId;
    
    @JsonProperty("alert_type")
    private String alertType;
    
    @JsonProperty("alert_value")
    private BigDecimal alertValue;
    
    @JsonProperty("alert_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alertTime;
    
    private String status;
    
    @JsonProperty("resolved_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime resolvedAt;
} 